#include <stdio.h>
#include <stdlib.h>
int main()
{
  FILE*fp;
  char file[1024];
  if((fp=fopen("/home/tian/桌面/txt.c","r"))==NULL)
     {
       printf("can't open file!\n");
       exit(0);
     }
  while(fgets(file,1024,fp)!=NULL)
     {
       printf("%s",file);
     }
  fclose (fp);
  return 0;
}
